import Ajax from "./ajax";

const UserApi = {};

UserApi.login = (params) => {
    let url = "/login"
    return Ajax.json(url, params)
}

UserApi.list = (params) => {
    let url = "/user/list"
    return Ajax.json(url, params)
}

UserApi.detail = (params) => {
    let url = "/user/info"
    return Ajax.json(url,params)
}

export default UserApi